package cn.yyvtc.workorderms.project.service.impl;

import cn.yyvtc.workorderms.project.dao.ProjectDao;
import cn.yyvtc.workorderms.project.entity.ProjectEntity;
import cn.yyvtc.workorderms.project.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 黄后林
 * @date 2022-11-01 11:26:59
 * @note 程序员是用代码喂出来的
 */
// 1、告诉Spring  ProjectServiceImpl我自己不new 由Spring你根据需要去new
@Service
public class ProjectServiceImpl implements ProjectService {


    @Autowired
    private ProjectDao dao;

    @Override
    public ProjectEntity findById(Long id) {
        return dao.findById(id);
    }

    @Override
    public List<ProjectEntity> findAll() {
        return dao.findAll();
    }
}
